package hzau.service;

import hzau.pojo.Teacher;
import hzau.pojo.requestParams.LoginParams;
import hzau.pojo.requestParams.TeacherRegisterParam;
import hzau.result.Result;

public interface TeacherService {
    Result login(LoginParams loginParams);

    Result register(TeacherRegisterParam teacher);

    Result delete(Long id);
    Result update(Long id,TeacherRegisterParam teacher);

    Result getOne(Long id);
    void updateRedis(Long collegeId);
    void deleteFromRedis(Long collegeId);

    Result getAll(Long collegeId, Integer pageNum);

    Teacher findByPhoneNumber(String s);
    void testLock();

    Result getCourseNames(Long id);

    Result getTeacherNames(Long courseId);

    Result getTeachersWithoutCourse(Long courseId, Long collegeId);

    Result addTeacherWithoutCourse(Long courseId, Long teacherId);

    Result deleteTeacherWithCourse(Long courseId, Long teacherId);

    Result getTeachersTeachCourse(Long courseId, Long collegeId);

    Result getCreateTeacher(Long courseId);

    Result getTeachersCourse(Long courseId, Long collegeId);

    Result getReviewTeacher(Long courseId);

    Result getAllTeacher(Long collegeId);
}
